-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][IMP] dms_field: Add partner embedded DMS template #378
Conversation
We should avoid using demo data on tests. |
be9b288
to
1b78a1d
Compare
I don't totally agree, but ok, it's already changed. |
Ping @pedrobaeza |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should avoid using demo data on tests.
I don't totally agree, but ok, it's already changed.
About this, the reasons are:
- Being self-contained: any change on data across versions/updates that affect the tests are not contained on the test file itself, and they are more difficult to be traced.
- Being reliable: if you depend on demo data, that demo data may be manually altered on the current DB, making the test to fail.
Thus, we must avoid it, the same as finally Odoo has done in its own tests.
In this module, I also see more dependencies to demo data (like dms.access_group_01_demo
, dms.storage_demo
, etc), so they must be removed.
1b78a1d
to
0b6c950
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ocabot merge patch
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 1670f54. Thanks a lot for contributing to OCA. ❤️ |
We need to avoid applying a template except when testing functionality with dms_field* modules to avoid the error that a directory with the same name already exists (example: create partner). Related to OCA#378
We need to avoid applying a template except when testing functionality with dms_field* modules to avoid the error that a directory with the same name already exists (example: create partner). Related to OCA#378
Add partner embedded DMS template
Fixes #377
Please @pedrobaeza and @CarlosRoca13 can you review it?
@Tecnativa